<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Open Source BMS</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" href="__JS__/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="__CSS__/font-awesome.min.css">
    <!--CSS引用-->
    {block name="css"}{/block}
    <link rel="stylesheet" href="__CSS__/admin.css">
    <!--[if lt IE 9]>
    <script src="__CSS__/html5shiv.min.js"></script>
    <script src="__CSS__/respond.min.js"></script>
    <![endif]-->
</head>
<body>

    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <div class="layui-tab-content">
				<div class="layui-col-md8">
						<div class="layui-tab-item layui-show">
							<form class="layui-form " style="margin-right: 80px;" action="{:url('admin/config/update')}" method="post">
								<div class="layui-form-item">
									<label class="layui-form-label">配置分组</label>
									<div class="layui-input-block">
									<input type="radio" name="group" value="base" title="基本" {eq name="config_info.group" value="base"}checked=""{/eq}>
									<input type="radio" name="group" value="system" title="系统" {eq name="config_info.group" value="system"}checked=""{/eq}>
									<input type="radio" name="group" value="upload" title="上传" {eq name="config_info.group" value="upload"}checked=""{/eq}>
									<input type="radio" name="group" value="upload" title="开发" {eq name="config_info.group" value="develop"}checked=""{/eq}>
									<input type="radio" name="group" value="upload" title="数据库" {eq name="config_info.group" value="database"}checked=""{/eq}>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">配置类型</label>
										<div class="layui-input-inline">
											<select name="type" lay-verify="required" lay-search="">
											<option value="">直接选择或搜索选择</option>
											{volist name="option_info" id="vo"}
											<option value="{$key}" {eq name="$config_info.type" value="$key"}selected=""{/eq}>{$vo}</option>
											{/volist}
											</select>
										</div>
									</div>
								</div>
								<div class="layui-form-item">
										<label class="layui-form-label">配置标题</label>
										<div class="layui-input-block">
											<input type="text" name="title" value="{$config_info.title}" required  lay-verify="required" placeholder="请输入配置标题" class="layui-input">
										</div>
								</div>
								<div class="layui-form-item">
										<label class="layui-form-label">配置名称</label>
										<div class="layui-input-block">
											<input type="text" name="name" value="{$config_info.name}" required  lay-verify="required" placeholder="由英文字母和下划线组成，如 web_site_title，调用方法：config('web_site_title')" class="layui-input">
										</div>
								</div>
								<div class="layui-form-item layui-form-text">
									<label class="layui-form-label">配置值</label>
									<div class="layui-input-block">
									<textarea name="value" placeholder="请输入该配置的具体内容" class="layui-textarea">{$config_info.value}</textarea>
									</div>
								</div>
								<div class="layui-form-item layui-form-text">
									<label class="layui-form-label">配置项</label>
									<div class="layui-input-block">
									<textarea name="options" placeholder="请输入配置项 用于单选、多选、下拉、联动等类型" class="layui-textarea">{$config_info.options}</textarea>
									</div>
								</div>
								<div class="layui-form-item">
										<label class="layui-form-label">配置说明</label>
										<div class="layui-input-block">
											<input type="text" name="tips" value="{$config_info.tips}" required  lay-verify="required" placeholder="请输入该配置的具体说明" class="layui-input">
										</div>
								</div>
								<div class="layui-form-item">
										<label class="layui-form-label">排序</label>
										<div class="layui-input-block">
											<input type="text" name="sort" value="{$config_info.sort}" required  lay-verify="required" placeholder="请输入该配置的具体说明" class="layui-input">
										</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-input-block">
										<input type="hidden" name="id" value="{$config_info.id}">
										<button class="layui-btn" lay-submit lay-filter="*">更新</button>
										<button type="reset" class="layui-btn layui-btn-primary">重置</button>
									</div>
								</div>
							</form>
						</div>
				</div>
				<div class="layui-col-md4">
				</div>
        </div>
    </div>
</div>

</script>
<!--JS引用-->
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/layui/layui.all.js"></script>
</body>
</html>
